﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Models.Admin
{
    public class GroupModel
    {
        public int GroupId { get; set; }
        public string GroupName { get; set; }
        public string GroupCode { get; set; }
        public string Description { get; set; }
        public int AppId { get; set; }
        public string Type { get; set; }
        public int IsActive { get; set; }
        public int RecordCount { get; set; }
//        public string GroupName { get; set; }

        #region field list form database
        public const string FIELD_GROUP_ID = "GroupId";
        public const string FIELD_NAME = "GroupName";
        public const string FIELD_CODE = "GroupCode";
        public const string FIELD_DESCRIPTIONS = "Description";
        public const string FIELD_DELETED = "IsActive";
        public const string FIELD_RECORD_COUNT = "RecordCount";
        public const string FIELD_APPID = "AppId";
        public const string FIELD_TYPE = "Type";
        #endregion
    }

    
    public class ActionGroupCode
    {
        public ActionGroupCode()
        {
            this.ActionID = Common.NullValues.Default_Int;
            this.Actionname = Common.NullValues.Default_String;
        }
        
        public int ActionID { get; set; }
        public string Actionname { get; set; }

        public const string Field_ActionID = "ActionID";
        public const string Field_Actionname = "Actionname";
    }

    public class CheckBoxList
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public const string FIELD_ID = "Id";
        public const string FIELD_NAME = "Name";
    }
}
